package top.jojoace.GlobalExceptionAdvice_And_AutoURI.core;

import lombok.Data;

/**
 * <h1>统一所有的异常响应格式</h1>
 * <code>
 *     {
 *         code:Inter,
 *         message:String,
 *         request:String,
 *     }
 * </code>
 */
@Data
public class UnifyResponse {
    private int code;
    private String message;
    private String request;


    public UnifyResponse(int code, String message, String request) {
        this.code = code;
        this.message = message;
        this.request = request;
    }
}
